package com.engine4cloud.tdf.education.dto.query;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * 工作人员文件-文件表
 *
 * @author wenjie
 * @date 2024-03-06 10:25:56
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Schema(description = "文件-请求对象")
public class EduResourceFileQueryDTO implements Serializable {

    /**
     * 主键
     */
    @Schema(description = "主键", example = "112234605521251521")
    private Long id;

    /**
     * 文件编号
     */
    @Schema(description = "文件编号", example = "46055212515215156")
    private String code;

    /**
     * 人员编号
     */
    @Schema(description = "资源编号", example = "46055212515215156")
    @NotBlank(message = "资源编号不能为空 ")
    private String resourceCode;

    public EduResourceFileQueryDTO(String resourceCode) {
        this.resourceCode = resourceCode;
    }
}